package com.zq.designpaterns.behavior.command;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/14  09:58
 * 修改日期：
 * 描    述：请求类
 * 修订历史：
 * ================================================
 */
public class Stock {
    private final String name = "ABC";

    private final int quantity = 10;

    public void buy() {
        System.out.printf("Stock：【name：%s,quantity：%d】 bought\n", name, quantity);
    }

    public void sell(){
        System.out.printf("Stock：【name：%s,quantity：%d】 sold\n", name, quantity);
    }
}
